/**
 * 
 */
package controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dj.mapper.UserMapper;
import com.dj.pojo.User;
import com.dj.pojo.UserExample;

/**
 * @author 戴俊
 *
 * @date 2018年8月8日 
 */
@Controller
@RequestMapping("/")
public class UserController {
	@Autowired
	 private UserMapper userMapper;
	@RequestMapping("index")
	public String index(){
		  
		   List<User> list = userMapper.selectByExample(null);
		  
			System.out.println(list);
		
			
		return "index";
	}
}
